/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

#app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #1e40af;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-badge {
    background-color: #36d399;
    color: white;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* 英雄区域 */
.hero-card {
    text-align: center;
}

.create-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.hero-name-input {
    width: 300px;
    max-width: 100%;
}

.create-btn {
    width: 180px;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.hero-avatar {
    margin-bottom: 15px;
}

.hero-stats h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.hero-stats p {
    margin: 5px 0;
    color: #64748b;
}

/* 怪物区域 */
.monsters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.monster-item {
    text-align: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: transform 0.2s;
}

.monster-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.monster-avatar {
    margin-bottom: 10px;
}

.monster-info h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.monster-info p {
    font-size: 14px;
    color: #64748b;
    margin: 3px 0;
}

.fight-btn {
    margin-top: 10px;
    width: 100px;
}

/* 战斗结果弹窗 */
.battle-result {
    text-align: center;
    padding: 10px 0;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.victory .result-icon {
    color: #10b981;
}

.defeat .result-icon {
    color: #ef4444;
}

.result h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.result p {
    margin: 5px 0;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .monsters-grid {
        grid-template-columns: 1fr;
    }
}
